﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using TouchRC.MetadataCaching;
using System.IO;

namespace MetadataCacher
{
    class Program
    {
        static void Main(string[] args)
        {
            foreach (string dir in args)
            {
                try
                {
                    DirectoryInfo cacheDirectory = new DirectoryInfo(dir);
                    if (Directory.Exists(cacheDirectory.FullName))
                    {
                        new CachingHelper().CacheMedia(cacheDirectory);
                    }
                }
                catch
                {
                }
            }
        }
    }
}
